<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
        <head><title>class IpAddress in be.jvb.iptypes</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF8"></meta><meta content="scaladoc (version 2.7.7.final)" name="generator"></meta><link href="../../../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../../../script.js"></script>
        </head>
        <body onload="init()">
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">Scala IPv4 0.1 API</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
        
      <div class="entity">
        <a href="../../../be/jvb/iptypes$package.html" target="_self">be.jvb.iptypes</a>
        <br></br>
        <span class="entity">class  IpAddress</span>
      </div><hr></hr>
      <div class="source">
        [source: <a href="" class="be/jvb/iptypes/IpAddress"><code>be/jvb/iptypes/IpAddress.scala</code></a>]
      </div><hr></hr>
      <a name="IpAddress"></a><dl>
      <dt>
        
        <code></code>
        <code>class</code>
        <em>IpAddress</em>(<code>val </code><em>value</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Long.html" target="_self">Long</a>)
      </dt>
      <dd><code> extends </code><a href="" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray</a></dd>
    </dl>
      <dl><dd>Represents an IPv4 address.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Author</b></dt><dd><a href="http://janvanbesien.blogspot.com">Jan Van Besien</a></dd><dt style="margin:10px 0 0 20px;">
        <b>Parameters</b></dt><dd><code>value - </code>32bit value of the ip address (only 32 least significant bits are used)</dd></dl>
    <dl>
      <dt style="margin:10px 0 0 20px;"><b>Direct Known Subclasses:</b></dt>
      <dd><a href="../../../be/jvb/iptypes/IpNetworkMask.html" target="_self">IpNetworkMask</a></dd>
      </dl><hr></hr>
      <table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Additional Constructor Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../be/jvb/iptypes/IpAddress.html#this%28String%29" target="_self">this</a></em>
        (<em>address</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
        
        <div>Construct from a CIDR format string representation (e.g. "192.168.0.1").</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../be/jvb/iptypes/IpAddress.html#this%28java.net.InetAddress%29" target="_self">this</a></em>
        (<em>inetAddress</em> : <a href="" target="contentFrame" class="java/net/InetAddress">java.net.InetAddress</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
        
        <div>Construct from a java.net.InetAddress.</div>
      </td>
    </tr>
      </table>

<table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Values and Variables inherited from <a href="" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="#maxValue" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.maxValue</a>
        </td></tr>
      </table>
<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Method Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../be/jvb/iptypes/IpAddress.html#%2B%28Long%29" target="_self">+</a></em>
        (<em>value</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Long.html" target="_self">Long</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
        
        <div>Addition. Will never overflow, but wraps around when the highest ip address has been reached.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../be/jvb/iptypes/IpAddress.html#-%28Long%29" target="_self">-</a></em>
        (<em>value</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Long.html" target="_self">Long</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
        
        <div>Substraction. Will never underflow, but wraps around when the lowest ip address has been reached.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>protected def</code>
      </td>
      <td class="signature">
        <em><a href="../../../be/jvb/iptypes/IpAddress.html#nBytes" target="_self">nBytes</a></em>
         : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
        
        <div>How many bytes do we use (max 8).</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>protected def</code>
      </td>
      <td class="signature">
        <em><a href="../../../be/jvb/iptypes/IpAddress.html#radix" target="_self">radix</a></em>
         : <a href="" target="contentFrame" class="be/jvb/iptypes/DEC">be.jvb.iptypes.DEC</a>
        
        <div>In what radix do we represent the bytes when converting to a string.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../be/jvb/iptypes/IpAddress.html#toInetAddress" target="_self">toInetAddress</a></em>
         : <a href="" target="contentFrame" class="java/net/InetAddress">java.net.InetAddress</a>
        
        <div>Convert to java.net.InetAddress.</div>
      </td>
    </tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="#zeroPaddingUpTo" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.zeroPaddingUpTo</a>, <a href="#toIntArray" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.toIntArray</a>, <a href="#toByteArray" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.toByteArray</a>, <a href="#compare" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.compare</a>, <a href="#equals" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.equals</a>, <a href="#canEqual" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.canEqual</a>, <a href="#hashCode" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.hashCode</a>, <a href="#toString" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.toString</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="" target="contentFrame" class="scala/Ordered">scala.Ordered</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="#&amp;lt;" target="contentFrame" class="scala/Ordered">scala.Ordered.&lt;</a>, <a href="#&amp;gt;" target="contentFrame" class="scala/Ordered">scala.Ordered.&gt;</a>, <a href="#&amp;lt;=" target="contentFrame" class="scala/Ordered">scala.Ordered.&lt;=</a>, <a href="#&amp;gt;=" target="contentFrame" class="scala/Ordered">scala.Ordered.&gt;=</a>, <a href="#compareTo" target="contentFrame" class="scala/Ordered">scala.Ordered.compareTo</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#getClass%28%29" target="_self">getClass</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#clone%28%29" target="_self">clone</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notify%28%29" target="_self">notify</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notifyAll%28%29" target="_self">notifyAll</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%2CInt%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#finalize%28%29" target="_self">finalize</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%3D%3D%28AnyRef%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%21%3D%28AnyRef%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#eq%28AnyRef%29" target="_self">eq</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#ne%28AnyRef%29" target="_self">ne</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#synchronized%28T0%29" target="_self">synchronized</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html" target="_self">Any</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%3D%3D%28Any%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%21%3D%28Any%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#isInstanceOf" target="_self">isInstanceOf</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#asInstanceOf" target="_self">asInstanceOf</a>
        </td></tr>
      </table>


      <table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Additional Constructor Details</td></tr>
        </table><div><a name="this%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>this</em>(<em>address</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Construct from a CIDR format string representation (e.g. "192.168.0.1").</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="this%28java.net.InetAddress%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>this</em>(<em>inetAddress</em> : <a href="" target="contentFrame" class="java/net/InetAddress">java.net.InetAddress</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Construct from a java.net.InetAddress.</dd></dl>
      <dl></dl>
    <hr></hr></div>


<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Method Details</td></tr>
        </table><div><a name="nBytes"></a><dl>
      <dt>
        
        <code>protected</code>
        <code>def</code>
        <em>nBytes</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>How many bytes do we use (max 8).</dd></dl>
      <dl></dl>
    <dl>
        <dt style="margin:10px 0 0 20px;">
          <b>Overrides</b>
        </dt>
        <dd>
        <a href="" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray</a>.<a href="#nBytes" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.nBytes</a>
        </dd>
      </dl><hr></hr>
<a name="radix"></a><dl>
      <dt>
        
        <code>protected</code>
        <code>def</code>
        <em>radix</em> : <a href="" target="contentFrame" class="be/jvb/iptypes/DEC">be.jvb.iptypes.DEC</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>In what radix do we represent the bytes when converting to a string.</dd></dl>
      <dl></dl>
    <dl>
        <dt style="margin:10px 0 0 20px;">
          <b>Overrides</b>
        </dt>
        <dd>
        <a href="" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray</a>.<a href="#radix" target="contentFrame" class="be/jvb/iptypes/SmallByteArray">be.jvb.iptypes.SmallByteArray.radix</a>
        </dd>
      </dl><hr></hr>
<a name="%2B%28Long%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>+</em>(<em>value</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Long.html" target="_self">Long</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Addition. Will never overflow, but wraps around when the highest ip address has been reached.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="-%28Long%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>-</em>(<em>value</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Long.html" target="_self">Long</a>) : <a href="../../../be/jvb/iptypes/IpAddress.html" target="_self">IpAddress</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Substraction. Will never underflow, but wraps around when the lowest ip address has been reached.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="toInetAddress"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>toInetAddress</em> : <a href="" target="contentFrame" class="java/net/InetAddress">java.net.InetAddress</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Convert to java.net.InetAddress.</dd></dl>
      <dl></dl>
    <hr></hr></div>


    <hr></hr>
        <div>Copyright (c) 2010. All Rights Reserved.</div><table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">Scala IPv4 0.1 API</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
      </body>
      </html>